package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author 李旭
 * @date 2022/1/19 15:45
 * @Description:
 */
public interface OrderInfoService {
    Boolean hasStock(Long skuId, Integer skuNum);

    Long saveOrderInfo(OrderInfo orderInfo);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId, ProcessStatus processStatus);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    //构建发给仓库系统的Map数据
    public Map initWareData(OrderInfo orderInfo);
    //构建发给仓库系统的Map数据
    public Map initWareData(Long orderId);
}
